package org.huang.mybatis.demo.controller;

import org.huang.mybatis.demo.dto.TClassDto;
import org.huang.mybatis.demo.service.TClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.net.InetAddress;

/**
 * @描述：TClassController类描述
 * @作者: huanganwei
 * @创建时间: 2018-11-14 13:34:18
 * @版本: 1.0
 */
@RestController
@RequestMapping("/class")
public class TClassController {


    @Autowired
    private TClassService tClassService;


    @GetMapping("/{id}")
    public TClassDto getClass(@PathVariable Integer id){
       return tClassService.getTClass(id);
    }

}
